package com.imooc.pojo.VO;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * @author lihongyu
 * @CreateTime 2021-10-13 11:56
 * @Description 简单商品视图封装实体
 */
@ApiModel("简单商品视图封装实体")
public class SimpleItemVO implements Serializable {

    /**
     * 商品唯一标识
     */
    @ApiModelProperty(name = "itemId",value = "商品唯一标识",dataType = "String")
    private String itemId;

    /**
     * 商品名称
     */
    @ApiModelProperty(name = "itemName",value = "商品名称",dataType = "String")
    private String itemName;

    /**
     * 创建时间
     */
    @ApiModelProperty(name = "createdTime",value = "创建时间",dataType = "Date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdTime;

    /**
     * 商品主图地址
     */
    @ApiModelProperty(name = "itemUrl",value = "商品主图地址",dataType = "String")
    private String itemUrl;

    public String getItemId() {
        return itemId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public String getItemUrl() {
        return itemUrl;
    }

    public void setItemUrl(String itemUrl) {
        this.itemUrl = itemUrl;
    }

    @Override
    public String toString() {
        return "SimpleItemVO{" +
                "itemId='" + itemId + '\'' +
                ", itemName='" + itemName + '\'' +
                ", createdTime='" + createdTime + '\'' +
                ", itemUrl='" + itemUrl + '\'' +
                '}';
    }
}
